import request from './request'

export const regApi = (params) => request.post('/1024/register', params)
export const loginApi = (params) => request.post('/1024/login', params)
// axios的get方式传递参数，和post差别 很大，大家要注意
export const homeDefApi = (params) => request.get('/6666', { params })

export const getSelectQustionApi = (params) => request.get(`/1314/${params.actionCode}/${params.testType}`)

export const getQuestionsApi = params => request.post('/1314', params)

export const sendAnswerApi = params => request.put('/1314', params)